/***********************************************************************
 * Module:  Attribute.java
 * Author:  Stefan
 * Purpose: Defines the Class Attribute
 ***********************************************************************/

package org.dslintegration.merge.km3.core;

public class Attribute extends StructuralFeature {

	public Attribute() {
	};

	public Attribute(String name, Classifier type) {
		this.name = name;
		this.type = type;
		this.lower = 0;
		this.upper = 1;
	}

	public Attribute(String name, Classifier type, int lowerBound, int upperBound) {
		this.name = name;
		this.type = type;
		this.lower = lowerBound;
		this.upper = upperBound;
	}

	@Override
	public String toString() {
		return "\n\t\t\tAttribute [lower=" + lower + ", upper=" + upper + ", isOrdered=" + isOrdered + ", isUnique=" + isUnique + ", type=" + type + ", name=" + name
				+ ", location=" + location + "]";
	}

}